package com.funwell.modules.controller.response;

import com.github.pagehelper.Page;

import java.util.List;


public class PageResonseBean<T>{

	private static final long serialVersionUID = 1L;

	private List<T> list;
	
	private int pages = 1;// 总页数

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}
	
	public void setInfo(Page<T> pages) {
		this.list = pages.getResult();
		this.pages = pages.getPages();
	}

}
